package com.zhenyi.pxlm.controller;

import com.cenjiawen.common.IndexController;

public class PXLMController extends IndexController {

	public void index() {
		render("/pxlm/app/product/index.html");
	}
	
	public void majors() {
		Long categoryId = getParaToLong("categoryId");
		if (categoryId != null) {
			setAttr("categoryId", categoryId);
		}
		render("/pxlm/app/product/majors.html");
	}
	
	public void majorInfo() {
		Long productId = getParaToLong("productId");
		if (productId == null) {
			renderFailure("product id is null");
			return;
		}
		setAttr("productId", productId);
		render("/pxlm/app/product/majorInfo.html");
	}
	
	public void enroll() {
		render("/pxlm/app/product/enroll.html");
	}
	
	public void cart() {
		render("/pxlm/app/product/cart.html");
	}
	
	public void confirm() {
		render("/pxlm/app/product/confirm.html");
	}
	
	public void user() {
		render("/pxlm/app/product/user.html");
	}
	
}
